-- GENERATED SPELL FOR [Anchorite Karja] --


function spell0_19467(pUnit, Event) --@Greater Heal,Heal--
pUnit:FullCastSpellOnTarget(35096,pUnit)
pUnit:RegisterEvent('Sorts_19467', 3500, 1)
end

function spell1_19467(pUnit, Event) --@Holy Fire,n/a--
pUnit:FullCastSpellOnTarget(17141,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19467', 13000, 1)
end

function spell2_19467(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19467', 2500, 1)
end

function Sorts_19467(pUnit, Event)
local choix_sorts_19467 = math.random(0, 2)
if choix_sorts_19467 == 0 then
pUnit:RegisterEvent('spell0_19467', 1, 1)
end
if choix_sorts_19467 == 1 then
pUnit:RegisterEvent('spell1_19467', 1, 1)
end
if choix_sorts_19467 == 2 then
pUnit:RegisterEvent('spell2_19467', 1, 1)
end
end

function mob19467_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19467', math.random(1500, 3000), 1)
end

function mob19467_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19467_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19467_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19467, 1, 'mob19467_Action')
RegisterUnitEvent(19467, 2, 'mob19467_Leave')
RegisterUnitEvent(19467, 3, 'mob19467_Kill')
RegisterUnitEvent(19467, 4, 'mob19467_Die')
